<?php

require_once(
	".." . DIRECTORY_SEPARATOR .
	"dill2" . DIRECTORY_SEPARATOR .
	"code" . DIRECTORY_SEPARATOR .
	"classes" . DIRECTORY_SEPARATOR .
	"Dill2WebsiteProject.php"
);
require_once(
	".." . DIRECTORY_SEPARATOR .
	"dill2" . DIRECTORY_SEPARATOR .
	"code" . DIRECTORY_SEPARATOR .
	"constants" . DIRECTORY_SEPARATOR .
	"core_constants.php"
);


// Create the test website project.
$website_project_name = "master47music";

echo "Creating test website project.";
$wp1 = new Dill2WebsiteProject(
	$website_project_name
);

$wp1_website_project_path_website = ".." . DIRECTORY_SEPARATOR .
	"website_projects" . DIRECTORY_SEPARATOR .
	$website_project_name . DIRECTORY_SEPARATOR .
	"website" . DIRECTORY_SEPARATOR;
	
$wp1_website_project_path_css = ".." . DIRECTORY_SEPARATOR .
	"website_projects" . DIRECTORY_SEPARATOR .
	$website_project_name . DIRECTORY_SEPARATOR .
	"website" . DIRECTORY_SEPARATOR .
	"css" . DIRECTORY_SEPARATOR;
	
$wp1_website_project_path_js = ".." . DIRECTORY_SEPARATOR .
	"website_projects" . DIRECTORY_SEPARATOR .
	$website_project_name . DIRECTORY_SEPARATOR .
	"website" . DIRECTORY_SEPARATOR .
	"js" . DIRECTORY_SEPARATOR;
	
$wp1_website_project_path_download = ".." . DIRECTORY_SEPARATOR .
	"website_projects" . DIRECTORY_SEPARATOR .
	$website_project_name . DIRECTORY_SEPARATOR .
	"website" . DIRECTORY_SEPARATOR .
	"download" . DIRECTORY_SEPARATOR;
	
$wp1_website_project_path_media = ".." . DIRECTORY_SEPARATOR .
	"website_projects" . DIRECTORY_SEPARATOR .
	$website_project_name . DIRECTORY_SEPARATOR .
	"website" . DIRECTORY_SEPARATOR .
	"media" . DIRECTORY_SEPARATOR;
	
// Assert that all website project directories exist.
assert( file_exists( $wp1_website_project_path_website ) );
assert( file_exists( $wp1_website_project_path_css ) );
assert( file_exists( $wp1_website_project_path_js ) );
assert( file_exists( $wp1_website_project_path_download ) );
assert( file_exists( $wp1_website_project_path_media ) );


$wp1_website_project_path_database = ".." . DIRECTORY_SEPARATOR .
	DILL2_CORE_CONSTANT_WEBSITE_PROJECTS_PATH . DIRECTORY_SEPARATOR .
	$website_project_name . DIRECTORY_SEPARATOR .
	DILL2_CORE_WEBSITE_PROJECT_DATABASE_PATH;

// Assert that the database has been created.
assert( file_exists( $wp1_website_project_path_database ) );


// Remove the test website project.  LINUX ONLY.
echo "\r\nDeleting test website project.";
shell_exec( "rm -r ../website_projects" );

echo "\r\nDone.\r\n";
		
?>
